﻿//
// *************************************************************************************
// WP-Framework
//
// Developed by 
// Lukas Kretschmar (lkretschmar.dev@bluewin.ch)
//
// Switzerland, Copyright (c) 2012 lkretschmar
// This content is released under the MIT License (http://opensource.org/licenses/MIT).
//    
// *************************************************************************************
//
//
			

using System;
using KretschIT.WP_Fx.EasyMoq.Calls.Functions;

namespace KretschIT.WP_Fx.EasyMoq.Adapters
{
    internal class FunctionMockAdapter<T, TResult> : BaseMockAdapter<IFunctionMock<T>, TResult>, IFunction<T, TResult>
    {
        #region Ctor

        public FunctionMockAdapter(IFunctionMock<T> mock)
            : base(mock)
        {
            
        }

        #endregion

        #region Setup

        public void Returns(TResult value)
        {
            this.Mock.Returns(value);
        }

        public void Raise(Action<IEventsOf<T>> eventCall)
        {
            this.Mock.Raise(eventCall);
        }

        public void Throws(Exception exception)
        {
            this.Mock.Throws(exception);
        }

        #endregion       
    }
}
